package com.hirsi.core.vo.result;


import lombok.Data;
import java.util.List;

@Data
public class PageResult<T> {

    private Integer current;

    private Integer size;

    private Integer pages;

    private Integer total;

    private List<T> rows;

    private PageResult(){}

    public PageResult(Integer current, Integer size, List<T> rows) {
        this.current = current;
        this.size = size;
        this.rows = rows;
    }

    public PageResult(Integer current, Integer size, Integer pages, Integer total) {
        this.current = current;
        this.size = size;
        this.pages = pages;
        this.total = total;
    }

    public PageResult(Integer current, Integer size, Integer pages, Integer total, List<T> rows) {
        this.current = current;
        this.size = size;
        this.pages = pages;
        this.total = total;
        this.rows = rows;
    }
}
